package IT.shi.OOP;

/**
 * @author げっしょく
 * @date 2021/7/8
 */
public class TestStudent {
    public static void main(String[] args) {
        Student stu1 = new Student(/*"周震", 21*/);
        stu1.setName("周震");
        stu1.setAge(21);
        int age = stu1.getAge();
        String name = stu1.getName();
        System.out.println(name+"..."+age);
//        Student stu2 = new Student("邱清泉",25);
//        Student stu3 = new Student("刘付磊",24);
//        Student[] Arrystu = {stu1,stu2,stu3};
//        for (int i = 0; i < Arrystu.length; i++) {
//            System.out.println("我的姓名是："+Arrystu[i].name);
//            System.out.println("我有："+Arrystu[i].age+"岁了");
//        }
//        String name = stu1.getName();
//        int age = stu1.getAge();
//        System.out.println("我的姓名叫" + name);
//        System.out.println("我的年龄是" + age);
        stu1.study();
    }
}
